package com.framework.modules.chat.service;

import com.baomidou.mybatisplus.service.IService;
import com.framework.common.utils.PageUtils;
import com.framework.modules.chat.entity.ChatFriendEntity;
import com.framework.modules.dataview.entity.StatLikeAndAttentUserEntity;

import java.util.List;
import java.util.Map;

/**
 * 聊天联系人 
 *
 * @author MIT
 * @email litmiss@gmail.com
 * @date 2020-10-31 02:06:49
 */
public interface ChatFriendService extends IService<ChatFriendEntity> {

    PageUtils queryPage(Map<String, Object> params);

    Integer updateFriendBlockMessage(Integer to_uid,Integer from_uid,String block_message);

    Integer saveOrUpdateBatch(List<ChatFriendEntity> entityList);

    Integer updateFriendState(Integer uid,Integer targetUid,Integer state);

    StatLikeAndAttentUserEntity statLikeAndAttent(Integer uid);

    Map<String,Boolean> getIsAttentUserAndLikeUser(Integer uid,Integer targetUid);

}

